package com.yiya.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yiya.bean.Inventory;
import com.yiya.model.InventoryCplex;
import com.yiya.model.InventoryCplexModel;
import com.yiya.model.InventoryExample;
import com.yiya.model.InventoryStatisticsModel;

public interface InventoryMapper {
	int countByExample(InventoryExample example);

	int deleteByExample(InventoryExample example);

	int deleteByPrimaryKey(Integer id);

	int insert(Inventory record);

	int insertSelective(Inventory record);

	List<Inventory> selectByExample(InventoryExample example);

	Inventory selectByPrimaryKey(Integer id);

	int updateByExampleSelective(@Param("record") Inventory record,
			@Param("example") InventoryExample example);

	int updateByExample(@Param("record") Inventory record,
			@Param("example") InventoryExample example);

	int updateByPrimaryKeySelective(Inventory record);

	int updateByPrimaryKey(Inventory record);

	List<InventoryCplex> selectByModel(InventoryCplexModel record);

	int countByModel(InventoryCplexModel record);
	
	/**
	 * 获取合计
	 * @param record
	 * @return
	 */
	InventoryStatisticsModel selectFooting(InventoryCplexModel record);
}